#ifndef _ADC_H_
#define _ADC_H_

#include "device.h"
#include "rcc_apb_periph.h"
#include "gpio.h"

struct adc_gpio
{
    sj_uint32 base;
    sj_uint32 pin;
    sj_uint32 mode;
};

struct adc_device_data
{
    struct rcc_apb_periph  *adc_apb;
    struct rcc_adc_periph_clk *adc_clk;
    struct adc_gpio adc_gpio_init;
    struct peripheral_adc param;
    struct peripheral_adc_channel param_channel;
};

#endif
